package com.orangelife.service.base.common;

import java.io.Serializable;
import java.util.Map;

import org.codehaus.jackson.map.annotate.JsonSerialize;
import org.codehaus.jackson.map.annotate.JsonSerialize.Inclusion;

public class GeneralJsonEntity implements Serializable {
	private static final long serialVersionUID = -7862067425885216538L;
	private JsonGridEntity grid;
	private Integer errCode;
	private String errInfo = "";
	private Map<String, Object> others;

	@JsonSerialize(include = Inclusion.NON_NULL)
	public JsonGridEntity getGrid() {
		return grid;
	}

	public void setGrid(JsonGridEntity grid) {
		this.grid = grid;
	}

	public Integer getErrCode() {
		return errCode;
	}

	public void setErrCode(Integer errCode) {
		this.errCode = errCode;
	}

	public String getErrInfo() {
		return errInfo;
	}

	public void setErrInfo(String errInfo) {
		this.errInfo = errInfo;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	@JsonSerialize(include = Inclusion.NON_NULL)
	public Map<String, Object> getOthers() {
		return others;
	}

	public void setOthers(Map<String, Object> others) {
		this.others = others;
	}

}
